package com.my.users.pojo;

import java.util.Date;

public class AUser
{
	/* 主键 */
	private int id;
	/* email */
	private String email;
	/* 密码 */
	private String password;
	/* 状态 */
	private byte status;
	/* 创建时间 */
	private Date createTime;
	/* 更新时间 */
	private Date updateTime;
	/* 上次登录时间 */
	private Date lastLoginTime;
	/* 电话 */
	private String phone;
	/* qq */
	private String qq;
	/* 真实姓名 */
	private String trueName;

	private String statusStr;

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public String getEmail()
	{
		return email;
	}

	public void setEmail(String email)
	{
		this.email = email;
	}

	public String getPassword()
	{
		return password;
	}

	public void setPassword(String password)
	{
		this.password = password;
	}

	public byte getStatus()
	{
		return status;
	}

	public void setStatus(byte status)
	{
		this.status = status;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}

	public Date getLastLoginTime()
	{
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime)
	{
		this.lastLoginTime = lastLoginTime;
	}

	public String getPhone()
	{
		return phone;
	}

	public void setPhone(String phone)
	{
		this.phone = phone;
	}

	public String getQq()
	{
		return qq;
	}

	public void setQq(String qq)
	{
		this.qq = qq;
	}

	public String getTrueName()
	{
		return trueName;
	}

	public void setTrueName(String trueName)
	{
		this.trueName = trueName;
	}

	@Override
	public String toString()
	{
		return "AUser [id=" + id + ", email=" + email + ", password=" + password + ", status=" + status
				+ ", createTime=" + createTime + ", updateTime=" + updateTime + ", lastLoginTime=" + lastLoginTime
				+ ", phone=" + phone + ", qq=" + qq + ", trueName=" + trueName + "]";
	}

	public String getStatusStr()
	{
		if (this.getStatus() == 1)
		{
			this.statusStr = "启用";
		} else if (this.getStatus() == 0)
		{
			this.statusStr = "禁用";
		}
		return statusStr;
	}

}
